package org.mq.mymq.common.event.model;

import io.netty.channel.ChannelHandlerContext;

/**
 * @ClassName Event
 * @Description 事件抽象类
 * @Author jiarong_ye
 * @Date 2025/6/19 12:30
 * @Version 1.0
 */
public abstract class Event {
    String msgId;
    private long timestamp;
    private ChannelHandlerContext channelHandlerContext;

    public long getTimestamp() {
        return timestamp;
    }

    public ChannelHandlerContext getChannelHandlerContext() {
        return channelHandlerContext;
    }

    public void setChannelHandlerContext(ChannelHandlerContext channelHandlerContext) {
        this.channelHandlerContext = channelHandlerContext;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }
}
